package com.itcast.springboot.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    private Integer resultCode;
    private String message;
    private T data;

    public CommonResult(Integer resultCode, String message) {
        this(resultCode, message, null);
    }
}
